home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1998 September
/
EnigmA AMIGA RUN 30 (1998)(G.R. Edizioni)(IT)[!][issue 1998-09].iso
/
recent
/
finnpe1.rea
< prev
next >
Wrap
Text File
|
1998-07-27
|
6KB
|
158 lines
Short: V0.44, a mpega.library frontend w/ cyclic buffering
Author: tumu@kempele.fi (Tuomas Lukinmaa)
Uploader: tumu@kempele.fi (Tuomas Lukinmaa)
Version: 0.44
Type: mus/play
Requires: mus/misc/ahiusr.lha, util/libs/mpega_library.lha
Requires: dev/c/AsyncIO.lha, KS 39+
Introduction and legal mush:
----------------------------
Finnpeg is an assembly written frontend for mpega.library using
cyclic buffering, asyncio.library and AHI audio system.
Finnpeg uses the device-interface in AHI. Look notes section below.
Finnpeg is a freeware product.
Finnpeg is Copyrighted © 1998 by Tuomas Lukinmaa. All rights reserved.
mpega.library is Copyrighted © Stephane Tavenard.
AHI audio system is Copyrighted © by Martin Blom.
AsyncIO library is Copyrighted © by Magnus Holmgren and Martin Taillefer.
All rights reserved by their respective authors.
THERE IS NO WARRANTY FOR THE PROGRAMS, TO THE EXTENT
PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN
WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE
PROGRAMS "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF
THE PROGRAMS IS WITH YOU. SHOULD THE PROGRAMS PROVE DEFECTIVE,
YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO
IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO
MAY REDISTRIBUTE THE PROGRAMS AS PERMITTED ABOVE, BE LIABLE TO
YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO
USE THE PROGRAMS (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR
DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR
THIRD PARTIES OR A FAILURE OF THE PROGRAMS TO OPERATE WITH ANY
OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
Usage:
------
NAME/A,DIV=DIVISOR/N,QTY=QUALITY/N,MONO/S,UNIT/N/K,BUF=BUFFERS/N,
FPB=FRAMESPERBUFFER/N,IOBUF=IOBUFFERS/N
NAME is abbreviation for filename to be played.
No defaults here. =)
DIV or DIVISOR is divisor value given to mpega.library which is one of
the following: 1=play with full sampling rate, 2=play with half sampling
rate and 4=play with quarter sampling rate.
Default is playing with full sampling rate.
Examples: You have a layer 3-file with sampling rate of 44100 khz and you
give DIV=2 parameter to finnpeg, so finnpeg plays it with 22050 khz.
You have a layer 3-file with sampling rate of 22050 khz and you
give DIV=2 parameter to finnpeg, so finnpeg plays it with 11025 khz.
QTY or QUALITY is quality value gigen to mpega.library. Ranges from
0 (worst) to 2 (best).
Default is best quality.
MONO activates force mono switch in mpega.library which causes it
to decode stream mono (only left channel decoded).
finnpeg also plays the stream with mono from both speakers.
Default is to decode and play in stereo.
UNIT is an AHI option to give the unit number which to open. In theory
you could play upto 4 streams at the same time (if your Amiga has
CPU power). =) Ranges from 0 (default) to 3.
BUF or BUFFERS specify how many cyclic buffer slots to reserve.
BUFFERS is multiplied with FRAMESPERBUFFER value.
Default is 16.
FPB or FRAMESPERBUFFER specify how many mpega.library frame buffers is
played in one go. One buffer is 1152 words.
Default is 8.
Total memory usage formula is in bytes:
for tables: BUFFERS*8*FPB+BUFFERS*4
for buffers: BUFFERS*2*(1152*2*FPB)
IOBUF or IOBUFFERS is an AsyncIO library option which specifies how many
kilobytes to use in IO buffers. AsyncIO divides this value in half to
make use of double buffered reads.
Examples:
Plays stream with DIV=2, QUALITY=1 and MONO. Also plays 16 frames in one go.
I use these options playing streams with my machine which is 030/50.
finnpeg "CD0:mp3/Windows95 Sucks.mp3" 2 1 mono fpb=16
Plays stream with DIV=2, QUALITY=2 and STEREO. (suitable for 040s)
finnpeg "CD0:mp3/Queen - Bohemian Rhapsody" 2 2
Notes:
------
AHI's 8 bit modes seem to cause lot of background static because of
mixing 16 bit audio data to 8 bits. Use 14 bit or better modes for
best quality.
Remember to set the channels slider at least to 2 in AHI settings
if playing in stereo, otherwise audio will loop strangely. It is a
restriction caused by AHI.
If playing streams you'll hear lot of clicks and pops (or similar),
try to give FPB-parameter with value greater than 8.
There maybe a bug in UNIT allocation in AHI because opening
ahi.device with different UNIT-number when playing a stream seems to
return a error. Maybe this is only related to using paula-driver.
Someone owning an audio card could try to play many streams at same time
to see if this is only a problem with paula-driver.
When playing in stereo and your machine is heavily loaded, the left
and right channels may go out of sync (probably happens when using very
large FPB values). This is because there is no way (atleast I don't know
it) in AHI's device-interface to play two or more channels in sync.
Todo list:
----------
-Loading full stream in memory before playing.
-GUI with support for WinAMP skins and equalizators.
-audio.device support (needs own mixing routines).
-Option to use normal io.
-List files.
Hi's to:
--------
People in IRCnet channel #AmigaFIN.
Stefane Tavenard for making mpega.library. Keep doing optimizations! =)
Martin Blom for making AHI. Pity I don't have an audio card. =(
All Amiga-users who are using this frontend.
Enjoy even faster mpeg audio. =)
Author's contact information:
-----------------------------
For bugreports, gifts and other stuff (excluding trading copyrighted
mpeg-files), use one of following addresses:
Snail-mail:
Tuomas Lukinmaa
Einarintie 27
FI-90440 KEMPELE
Finland, EU
E-mail: tumu@kempele.fi (preferred)